//
//  GoToTopicDetail.m
//  yigou
//
//  Created by wangdianlei on 2017/2/17.
//  Copyright © 2017年 hanyiwang. All rights reserved.
//

#import "GoToTopicDetail.h"
#import "TopicleWebViewController.h"

@implementation GoToTopicDetail

- (void)go:(id)context data:(id)data {
    [super go:context data:data];    
    NSDictionary *detailTopicle = data;
    NSString *articleContent =  [detailTopicle objectForKey:@"content_id"];
    NSString *articleAuthor =  [detailTopicle objectForKey:@"user_id"];
    NSString *articleTribe =  [detailTopicle objectForKey:@"tribe_id"];
    TopicleWebViewController *articel = [[TopicleWebViewController alloc]initWithNibName:@"TopicleWebViewController" bundle:nil];
    articel.articleContent = articleContent;
    articel.articleUserId = articleAuthor;
    articel.articleTribeId = articleTribe;
    
    UIViewController *vc = context;
    [vc.navigationController pushViewController:articel animated:YES];
}

@end
